import { createStore } from 'vuex'

const store=createStore({
	// 全局变量 state 状态
	state(){
		return{
		user:{
			uid:0,
			uname:'',
			pic:'',
			token:'',
			perm:{
				pname:'',
				vip:''
			}
		},
		msg:"提示信息",
		coms:[]
	}
	}
})
export default store;

